package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Organization;
import cn.wolfcode.crm.query.QueryObject;

import java.util.List;
import java.util.Map;

public interface OrganizationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Organization record);

    Organization selectByPrimaryKey(Long id);

    List<Organization> selectAll();

    int updateByPrimaryKey(Organization record);

    // 高级 查询
    int queryCount(QueryObject qo);
    List<Organization> queryList(QueryObject qo);

    // 复职 / 离职
    void changeCooperation(Long id);

    List<Map<String,Object>> selectOrganizationInfo();
}